﻿<?php

$access_token = auto('botcomment.googlecode.com/svn/toket.txt');

// Ganti cari-gadis.com dengan nama domain Sobat tanpa http


if(file_exists('Hansend')){
$log=json_encode(file('Hansend'));
}else{
$log='';
}
$jamAqz=array('01','02','03','04','05','06','07','08','09','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','00',);
$NgaCo=array('Lagi Ngeronda yaa...','Jiaaah.. BeLum tidur juga...','Tumben masih Gentayangan....','Jiaaah.. BeLum ngantuk niih...','jiaah... bangun langsung OL','jiiaaahh.. bangun langsung OL','Sarapan belUm niih','Sarapan belum niih','Met beraktifitas yaa','Met beraktifitas ya','Met beristirahat ya','Jgn Lupa Sholat Dhuhur yaa...','Udah makan siang Belum ??','Met beraktifitas ya','Jgn Lupa Sholat Ashar yaa...','Met Nyantai aja yaa...','sudah mandi belum?','Jgn lupa Sholat Magrib yaa..','Udah Makan malam belum ??','Waktunya tidur niih...','Tidur Dulu...','Waktunya bobok','beLum tidur nie','Lagi Begadang ya','Met Dini hari... Masih Begadang ya',);
$KeurNaon = str_replace($jamAqz,$NgaCo);
$aiueo = array('A','I','E','O','a','i','e','o',);
$uuu = array('u','u','u','u','u','u','u','u',);
$Gadis = array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',);
$Bohay = array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',);
$me = json_decode(auto('https://graph.facebook.com/me?access_token='.$access_token.'&fields=id'),true);
$stat=json_decode(auto('https://graph.facebook.com/me/home?fields=id,message,created_time,from,comments,type&access_token='.$access_token.'&offset=0&limit=15'),true);

$mesem=array('(●*∩_∩*●)','(*^ -^*)','(◡‿◡✿)','(◕‿◕✿)','(✿◠‿◠)','(◑‿◐)','(◕‿-)','(｡◕‿◕｡)','(｡❤‿❤｡)','(✿ ♥‿♥)','(｡♥‿♥｡)','(～o❤‿❤)～o',);
$nyengir=$mesem[rand(0,count($mesem)-1)];

for($i=1;$i<=count($stat[data]);$i++){
if(!ereg($stat[data][$i-1][id],$log)){
if($stat[data][$i-1][from][id] != $me[id]){
$x=$stat[data][$i-1][id].'  ';
$y = fopen('hansend','a');
fwrite($y,$x);
fclose($y);
$bot=array('nomer','latah','biasa',);
$robot=$bot[rand(0,count($bot)-1)];
$s=$stat[data][$i-1][message];
$Aquz = array('Q','W','E','R','T','Y','U','I','O','P','A','S','D','F','G','H','J','K','L','Z','X','C','V','B','N','M','q','w','e','r','t','y','u','i','o','p','a','s','d','f','g','h','j','k','l','z','x','c','v','b','n','m',);
$Heck = array('ҩ','ω','є','ʀ','т','γ','µ','ɨ','ღ','ρ','ɑ','s','∂','ƒ','ɢ','ɦ','ʆ','ќ','ℓ','ẕ','х','ς','ν','в','и','ʍ','ҩ','ω','є','ʀ','т','γ','µ','ɨ','ღ','ρ','ɑ','s','∂','ƒ','ɢ','ɦ','ʆ','ќ','ℓ','ẕ','х','ς','ν','в','и','ʍ',);
$Lewat=array('motivasi.php','lucu.php','konyol.php',);
include $Lewat[rand(0,count($Lewat)-1)];
$In = $Kamana[rand(0,count($Kamana)-1)];
$kunjungi = str_replace($Aquz,$Heck,$In);

$gen=json_decode(auto('http://graph.facebook.com/'.$stat[data][$i-1][from][id].'?fields=gender'),true);
if($gen[gender] == 'male'){
$Masukin = array('Kak','Kang',);
$gender = $Masukin[rand(0,count ($Masukin)-1)];
}else{
$Masukin = array('Non','Kak',);
$gender = $Masukin[rand(0,count ($Masukin)-1)];
}
$KenaLan = explode(' ',$stat[data][$i-1][from][name]);
$KenaLan = str_replace($Gadis,$Bohay,$KenaLan);
$nama = $gender.' ['.$KenaLan[0].']';
if($stat[data][$i-1][type] == 'photo' ){
$JaNda= array('Keren '.$nama.' foto sapa tuh '.$nyengir.' ,, 
Sambil bawa motivasi nieh,,
★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★

'.$kunjungi.'

★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★',
'Nice pic '.$nama.' haha '.$nyengir.' 
sambil bawa motivasi nieh,,
★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★

'.$kunjungi.'

★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★',
'wow kerennnn Gambar nya (❤‿❤ ✿)
'.$nama.'
sambil bawa motivasi nieh,
★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★

'.$kunjungi.'

★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★',
'wew.. ^_^  potonya sip
'.$nama.'
mantab dah..
Sambil bawa motivasi nieh,,,
★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★

'.$kunjungi.'

★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★',
'waw .. d[•_•]b foto siapa itu
'.$nama.'.,
sambil bawa motivasi nieh,,
★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★

'.$kunjungi.'

★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★',
);
}else{
$JaNda = array(''.$nama.'??,,
aku kasih motivasi nih '.$nyengir.' 
★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★

'.$kunjungi.'

★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★',
'Mampir lagi ah.. boleh kan
'.$nama.' .??
aku kasih motivasi nih '.$nyengir.' 
★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★

'.$kunjungi.'

★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★',
'mo koment apa ea??
'.$nama.' ??
aku kasih motivasi nih '.$nyengir.' ??
★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★

'.$kunjungi.'

★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★',
'absen koment aja deh..,,
'.$nama.' ?? gak papa kan '.$gender.',,
sambil bawa motivasi nih '.$nyengir.' 
★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★

'.$kunjungi.'

★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★',
''.$nama.' ??,,
mantab deh statusmu,,
aku kasih motivasi nih '.$nyengir.' 
★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★

'.$kunjungi.'

★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★',
''.$nama.' ??,,
aku hadir lagi lho nie '.$gender.' 
aku kasih motivasi nih '.$nyengir.' ??
★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★

'.$kunjungi.'

★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★',
'mo koment apa ea??
'.$nama.' ??
aku kasih motivasi nih '.$nyengir.' ??
★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★

'.$kunjungi.'

★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★',
'meluncur lagi ahh,,
'.$nama.' ,,
aku kasih motivasi nih '.$nyengir.' ,,
★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★

'.$kunjungi.'

★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★',
''.$nama.' ,,
mantab deh statusmu,,
aku kasih motivasi nih '.$nyengir.' ??
★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★

'.$kunjungi.'

★•☆•★•☆•★•☆•★•☆•★•☆•★•☆•★',
); }

$zona_waktos="+7";
$waktos=gmdate("H", time() + ($zona_waktos * 60 * 60));
if ($waktos > 18) $wilujeung = "Selamat Malam $nama ";
else if($waktos > 14) $wilujeung = "Selamat Sore $nama ";
else if ($waktos > 10) $wilujeung = "Selamat Siang $nama ";
else $wilujeung = "Selamat Pagi $nama ";

$waktos_umum = microtime();
$waktos_umum = explode(' ',$waktos_umum);
$waktos_umum = $waktos_umum[0];
$waktos_akhir = $waktos_umum;
$totalna = ($waktos_akhir - $waktos_mulai);
$per = number_format($totalna, 1, '.', '');

$poe=gmdate("D", time()+60*60*7);
if((gmdate("D", time()+60*60*7))=="Sun"){ $poe="Minggu"; }
if((gmdate("D", time()+60*60*7))=="Mon"){ $poe="Senin"; }
if((gmdate("D", time()+60*60*7))=="Tue"){ $poe="Selasa"; }
if((gmdate("D", time()+60*60*7))=="Wed"){ $poe="Rabu"; }
if((gmdate("D", time()+60*60*7))=="Thu"){ $poe="Kamis"; }
if((gmdate("D", time()+60*60*7))=="Fri"){ $poe="Jum'at"; }
if((gmdate("D", time()+60*60*7))=="Sat"){ $poe="Sabtu"; }
$tgl= gmdate("d", time()+60*60*7);
$bln = gmdate("F", time()+60*60*7);
if((gmdate("F", time()+60*60*7))=="January"){ $bln="Januari"; }
    if((gmdate("F", time()+60*60*7))=="February"){ $bln="Februari"; }
    if((gmdate("F", time()+60*60*7))=="March"){ $bln="Maret"; }
    if((gmdate("F", time()+60*60*7))=="April"){ $bln="April"; }
    if((gmdate("F", time()+60*60*7))=="May"){ $bln="Mei"; }
    if((gmdate("F", time()+60*60*7))=="June"){ $bln="Juni"; }
    if((gmdate("F", time()+60*60*7))=="July"){ $bln="Juli"; }
    if((gmdate("F", time()+60*60*7))=="August"){ $bln="Agustus"; }
    if((gmdate("F", time()+60*60*7))=="September"){ $bln="September"; }
    if((gmdate("F", time()+60*60*7))=="October"){ $bln="Oktober"; }
    if((gmdate("F", time()+60*60*7))=="November"){ $bln="November"; }
    if((gmdate("F", time()+60*60*7))=="December"){ $bln="Desember"; }
$thn = gmdate("Y", time()+60*60*7);
$jam= gmdate("H:i", time()+60*60*7);

$nomerku = $stat[data][$i-1][comments][count]+1;
$total = $stat[data][$i-1][comments][count];
$HajarBro = $stat[data][$i-2][from][name];

$NgaranNuPosting = $me[id];
$Saha_Ieu='@['.$NgaranNuPosting.':1]';
$BejaKeun= $Saha_Ieu;
$PLus_PLus= "
╭═════════════════╮
║ [[xatpray]] $wilujeung
$BejaKeun
║ [[f9.sun]] Jam $jam WIB Komen Mendarat
║ [[f9.rainbow]] Hari $poe ▪ $tgl ▪ $bln ▪ $thn
║ [[xatmaniac]] Kecepatan Komen $per Detik (Y)
║ [[100008336359431]] Follow Me @Hans_endonesia
║ [[xatgrin]] Visit www.facebook.com/pages/HANS/315523371938671║ ♠♣Çʀεάʈèɗ βɣ HANS ENDONESIA♣♠
╰════════╮╭═══════╯
╭════════╯╰═══════╮
║ [[1400603256835587]]
║ [[facebook]] http://facebook.com/100008336359431 [[f9.stary]]
║ :|] Maaf SAYA hanya ASSISTENNYA PROGRAMER HANS. Jika tidak suka
║ ▪ Protes aja ke Hans di kota Serang atau Hub 085924000158 ▪
║ [[1400603256835587]]
╰═════════════════╯";

$PijaT = $JaNda[rand(0,count($JaNda)-1)];
$message=($PijaT.$PLus_PLus);

auto('https://graph.facebook.com/'.$stat[data][$i-1][id].'/comments?access_token='.$access_token.'&message='.urlencode($message).'&method=post');
auto('https://graph.facebook.com/'.$stat[data][$i-1][id].'/likes?access_token='.$access_token.'&method=post');
echo $stat[data][$i-1][from][name].'=> '.htmlspecialchars($stat[data][$i-1][message]).'
Komentar_BOT => '.$message.'';
}
}
}

function auto($url){
$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_URL, $url);
$ch = curl_exec($curl);
curl_close($curl);
return $ch;
}

?>